package com.hualan.service.impl;

import com.hualan.domain.Consultproblem;
import com.hualan.mapper.ConsultproblemMapper;
import com.hualan.service.ConsultProblemService;
import com.hualan.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConsultProblemImpl implements ConsultProblemService {
    @Autowired
    public ConsultproblemMapper consultproblemMapper;

    @Override
    public List<Consultproblem> selectAllReply(int userId) {
        return consultproblemMapper.selectAllReply(userId);
    }

    @Override
    public List<Consultproblem> selectAll() {
        return consultproblemMapper.selectAll();
    }

    @Override
    public List<Consultproblem> selectAlllike(String title) {
        return consultproblemMapper.selectAlllike(title);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return consultproblemMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(Consultproblem record) {
        return consultproblemMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Consultproblem record) {
        return consultproblemMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<Consultproblem> selectAllIdProblemtitle() {
        return consultproblemMapper.selectAllIdProblemtitle();
    }

}
